package com.sky.service;

import com.sky.dto.*;
import com.sky.entity.Orders;
import com.sky.result.PageResult;
import com.sky.vo.OrderPaymentVO;
import com.sky.vo.OrderStatisticsVO;
import com.sky.vo.OrderSubmitVO;
import com.sky.vo.OrderVO;

import java.time.LocalDate;
import java.time.LocalDateTime;

public interface OrderService {
    OrderSubmitVO submit(OrdersSubmitDTO ordersSubmitDTO);

    PageResult historyOrders(Integer page, Integer pageSize, Integer status);

    OrderVO getOrderDetailByOrderId(Long id);

    void cancelOrder(Long id);

    void repetition(Long id);

    PageResult conditionSearch(LocalDate beginTime, LocalDate endTime, Integer number, Integer page, Integer pageSize, String phone, Integer status);


    OrderStatisticsVO getNumberByStatus();

    void confirmOrder(OrdersConfirmDTO dto);

    void rejectionOrder(OrdersRejectionDTO dto);

    void adminCancelOrder(OrdersCancelDTO dto);

    void deliveryOrder(Long id);

    void completeOrder(Long id);

    LocalDateTime payment(OrdersPaymentDTO dto);

    void reminder(Long id);
}
